package com.book.service;

import com.book.entity.BookOrder;
import com.book.entity.BookOrderItem;
import com.book.vo.OrderVo;

import java.util.List;

public interface OrderService {
    int addOrder(BookOrder bookOrder, List<BookOrderItem> bookOrderItemList, int[] cartId);

     OrderVo findOrderByOrderId(long orderId);

    int changeAddressByOrderId(Long orderId, int addressId);

    int updateOrderOrderStatus(BookOrder bookOrder);
    
    List<BookOrder> showAllPayOrder(Long userId);

    List<BookOrderItem> showDetailOrder(Long orderId);

    List<BookOrder> waitPayOrder( Long userId);

    int updatePayStatus(BookOrder bookOrder);
    
    List<BookOrder> selectWaitOrder(Long userId, Byte status);
}
